import {isMobile} from '@/utils'

export default [
  {
    path: '/',
    redirect: '/home',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          label: '首页',
          icon: 'House'
        },
        component: () => import('@/views/home/index.vue')
      }
    ]
  },
  {
    path: '/',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/iframe',
        name: 'iframe',
        meta: {
          label: '外链',
          isFrame: true,
          icon: 'Link',
          url: 'http://yueyuan.591adb.cn/#/home'
        }
      }
    ]
  },
  {
    path: '/components',
    component: () => import('@/layout/index.vue'),
    meta: {
      label: '组件',
      alwaysShow: true,
      icon: 'Menu'
    },
    name: 'components',
    children: [
      {
        path: '/components/cropping',
        name: 'cropping',
        meta: {
          label: '图片裁剪'
        },
        component: () => import('@/views/components/cropping/index.vue')
      },
      {
        path: '/components/upload',
        name: 'upload',
        meta: {
          label: '文件上传'
        },
        component: () => import('@/views/components/upload/index.vue')
      },
      {
        path: '/components/splitPane',
        name: 'splitPane',
        meta: {
          label: '切割面板'
        },
        component: () => import('@/views/components/splitPane/index.vue')
      },
      {
        path: '/components/editor',
        name: 'editor',
        meta: {
          label: '富文本'
        },
        component: () => import('@/views/components/editor/index.vue')
      }
    ]
  },
  {
    path: '/able',
    component: () => import('@/layout/index.vue'),
    meta: {
      label: '功能',
      alwaysShow: true,
      icon: 'FirstAidKit'
    },
    name: 'able',
    children: [
      {
        path: '/able/videoFrame',
        name: 'videoFrame',
        meta: {
          label: '视频帧截取'
        },
        component: () => import('@/views/able/video-frame/index.vue')
      },
      {
        path: '/able/pinyin',
        name: 'pinyin',
        meta: {
          label: '汉字拼音'
        },
        component: () => import('@/views/able/pinyin/index.vue')
      },
      {
        path: '/able/verify',
        name: 'verify',
        meta: {
          label: '图形验证码'
        },
        component: () => import('@/views/able/verify/index.vue')
      },
      {
        path: '/able/map',
        name: 'map',
        meta: {
          label: '腾讯地图'
        },
        component: () => import('@/views/able/map/index.vue')
      },
      {
        path: '/able/draggable',
        name: 'draggable',
        meta: {
          label: '拖拽'
        },
        component: () => import('@/views/able/draggable/index.vue')
      },
      {
        path: '/able/barcode',
        name: 'barcode',
        meta: {
          label: '条形码'
        },
        component: () => import('@/views/able/barcode/index.vue')
      },
      {
        path: '/able/qrcode',
        name: 'qrcode',
        meta: {
          label: '二维码'
        },
        component: () => import('@/views/able/qrcode/index.vue')
      },
      {
        path: '/able/video',
        name: 'video',
        meta: {
          label: '视频'
        },
        component: () => import('@/views/able/video/index.vue')
      },
      {
        path: '/able/pdf',
        name: 'pdf',
        meta: {
          label: 'pdf预览'
        },
        component: () => import('@/views/able/pdf/index.vue')
      },
      {
        path: '/able/danmaku',
        name: 'danmaku',
        meta: {
          label: '弹幕'
        },
        component: () => import('@/views/able/danmaku/index.vue')
      }


      // {
      //   path: '/system/menu',
      //   name: 'systemMenu',
      //   meta: {
      //     label: '菜单2',
      //     alwaysShow: true
      //   },
      //   component: () => import('@/views/home/index.vue'),
      //   children: [
      //     {
      //       path: '/system/menu/test1',
      //       name: 'systemMenu/tes1',
      //       meta: {
      //         label: '菜单2-1'
      //       },
      //       component: () => import('@/views/home/index.vue')
      //     }
      //   ]
      // }
    ]
  }
]
